import request from '@/utils/request'

// 创建个股报告期利润
export function createLrBase(data) {
  return request({
    url: '/invest/lr-base/create',
    method: 'post',
    data: data
  })
}

// 更新个股报告期利润
export function updateLrBase(data) {
  return request({
    url: '/invest/lr-base/update',
    method: 'put',
    data: data
  })
}

// 删除个股报告期利润
export function deleteLrBase(id) {
  return request({
    url: '/invest/lr-base/delete?id=' + id,
    method: 'delete'
  })
}

// 获得个股报告期利润
export function getLrBase(id) {
  return request({
    url: '/invest/lr-base/get?id=' + id,
    method: 'get'
  })
}

// 获得个股报告期利润分页
export function getLrBasePage(params) {
  return request({
    url: '/invest/lr-base/page',
    method: 'get',
    params
  })
}
// 导出个股报告期利润 Excel
export function exportLrBaseExcel(params) {
  return request({
    url: '/invest/lr-base/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}